<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<sec:authorize ifAllGranted="ROLE_USER">

	<table class="menu">
	  <tr>
	    <td>
	      <s:text name="menu.title"/>
	      &nbsp;
	      
	      &nbsp;
	      <s:url id="url" namespace="/" action="InfoAction" includeParams="none" />
	      <s:a href="%{#url}" title="%{getText('menu.start_tt')}">
	        <s:text name="menu.start"/>
	      </s:a>
	      &nbsp;
	      |
	      &nbsp;
	      <s:url id="url" namespace="/purchasers" action="list" includeParams="none" />
	      <s:a href="%{#url}" title="%{getText('menu.purchasers_tt')}">
	        <s:text name="menu.purchasers"/>
	      </s:a>
	      &nbsp;
	      |
	      &nbsp;
	      <s:url id="url" namespace="/invoices" action="list" includeParams="none" />
	      <s:a href="%{#url}" title="%{getText('menu.faktury_tt')}">
	        <s:text name="menu.faktury"/>
	      </s:a>
	      &nbsp;
	      |
	      &nbsp;
	      <s:url id="url" namespace="/invoices" action="create" includeParams="none" />
	      <s:a href="%{#url}" title="%{getText('menu.nowaFaktura_tt')}">
	        <s:text name="menu.nowaFaktura"/>
	      </s:a>
	      &nbsp;
	      |
	      &nbsp;
	      <s:url id="url" namespace="/unsecured" action="LogoutAction" includeParams="none" />
	      <s:a href="%{#url}" title="%{getText('menu.wyloguj_tt')}">
	        <s:text name="menu.wyloguj"/>
	      </s:a>
	      &nbsp;
	      
	    </td>
	  </tr>
	</table>

</sec:authorize>
